package com.xique.door.bean.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xique.common.core.annotation.Excel;
import com.xique.common.core.web.domain.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author: caogq @Date: 2022/1/28 15:16 @Description:
 */
@Data
@TableName(value = "d_building_device")
public class BuildingDevice extends BaseEntity {

  private static final long serialVersionUID = 1L;

  /** id */
  @TableId(value = "id", type = IdType.AUTO) // 指定自增策略
  private Long id;

  /** 车场id */
  @Excel(name = "车场id")
  private Long parkId;

  /** 设备id */
  @Excel(name = "设备id")
  private Long deviceId;

  /** 楼栋id */
  @Excel(name = "楼栋id")
  private Long buildingId;

  /** 创建者 */
  private String createBy;

  /** 创建时间 */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  /** 更新者 */
  private String updateBy;

  /** 更新时间 */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;

  @TableField(exist = false)
  private List<Long> buildingIds;
}
